<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		 <!--[if lt IE 9]>
    <script src="../js/jquery-1.11.3.js"></script>
    
<![endif]-->
<!--[if gte IE 9]><!-->
    <script src="../js/jquery-3.1.1.js"></script>
<!--<![endif]-->
<script>
$(document).ready(function(){
  $("p:contains(is)").css("background-color","yellow");
   $("p:has(span)").css("border","solid red");
});
</script>
</head>
<body>

<h1>欢迎来到我的主页</h1><br />
<p><span>p 元素中的 span 元素</span></p>
<p>这个 p 元素没有 span 元素</p>
<p class="intro">My name is Donald.</p>
<p>I live in Duckburg.</p>
<p>My best friend is Mickey.</p>

<p>你最喜欢的网站:</p>
<ul id="choose">
<li>Google</li>
<li>Taobao</li>
<li>Runoob</li>
</ul>

</body>
</html>